package com.hspedu.object_;

public class Equals01 {
    public static void main(String[] args) {
        A a = new A();
        A b = a;
        A c = b;
        System.out.println("a == b  " + (a == b));
        System.out.println("a == c  " + (a == c));
        System.out.println("b == c  " + (b == c));

        A a1 = new B();
        System.out.println("a1 == a  " + (a1 == a));
        A a2 = new B();
        System.out.println("a1 == a2  " + (a1 == a2));
        A a3 = a1;
        System.out.println("a3 == a1  " + (a3 == a1));

        "hello".equals("abc");



    }
}

class A{

}
class B extends A{

}